<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>银行列表</title>
    <link rel="stylesheet" type="text/css" href="./css/api.css" />
    <link rel="stylesheet" type="text/css" href="./css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="./css/styleold.css" />
    <script type="text/javascript" src="./script/api.js"></script>
    <script type="text/javascript" src="./script/aui-tab.js" ></script>
    <link rel="stylesheet" type="text/css" href="./css/aui-slide.css" />
    <script type="text/javascript" src="./script/aui-slide.js"></script>
    <script type="text/javascript">
        function closeWin(){
            api.closeWin({
            });
        };
    </script>
</head>
<body>
   <!-- 头部 -->
   <header class="aui-bar aui-bar-nav">
    <a class="aui-pull-left aui-btn" onclick="closeWin()">
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <div class="aui-title">银行列表</div>
</header>
<div class="bank-list">
    <ul>

        <li onclick="chooseBank('CCB','建设银行')">
            <i class="CCB"></i>
            <span>
                建设银行
                <p>单笔限额5万</p>
            </span>
        </li>

        <li onclick="chooseBank('ABC','农业银行')">
            <i class="ABC"></i>
            <span>
                农业银行
                <p>单笔限额5万</p>
            </span>
        </li>
        <li onclick="chooseBank('BOC','中国银行')">
            <i class="BOC"></i>
            <span>
                中国银行
                <p>单笔限额5万</p>
            </span>
        </li>
        <li onclick="chooseBank('CIB','交通银行')">
            <i class="CIB"></i>
            <span>
                交通银行
                <p>单笔限额5万</p>
            </span>
        </li>
        <li onclick="chooseBank('CMB','招商银行')">
            <i class="CMB"></i>
            <span>
                招商银行
                <p>单笔限额5万</p>
            </span>
        </li>
        <li onclick="chooseBank('ICBC','工商银行')">
            <i class="ICBC"></i>
            <span>
                工商银行
                <p>单笔限额5万</p>
            </span>
        </li>
        <li onclick="chooseBank('PSBC','邮政储蓄银行')">
            <i class="PSBC"></i>
            <span>
                邮政储蓄银行
                <p>单笔限额5万</p>
            </span>
        </li>
    </ul>
</div>
</body>
<script type="text/javascript">
    apiready = function(){

    }

    function chooseBank(bank,bankName){

        $api.setStorage('bank', bank);
        $api.setStorage('bankName', bankName);

        var backUrl = api.pageParam.backUrl;
        if (backUrl == 'user') {
            // 前页刷新银行图标
            var jsfun = 'apiready();';
            api.execScript({
                name: 'root',
                frameName: 'bank',
                script: jsfun
            });

            api.closeWin();
        }else{
            // 前页刷新银行图标
            var jsfun = 'apiready();';
            api.execScript({
                name: 'news_region',
                frameName: 'bank',
                script: jsfun
            });

            api.closeWin();
        }
    }

</script>
</html>
